
  /***********************************************************************************************

		@NAPI
    Module: DataSource(Db) (native api)

        __ni_db_create    (path)
        __ni_db_remove    (path)
    r   __ni_db_query     (path, sql)
        __ni_db_metadata  (path, query)
        __ni_db_exists    (path, tid*)

  ************************************************************************************************/

  //1-LiquidBox
  //-------------------------------------------------------------------------------
  if(jsl.__sys === "LiquidBox") {

	//-------------------------------------------------------------------------------
	jsl.DataSource.__ni_db_create = function(path) {
		try {
			__ni_dts_create(path)
		}
		catch(e) {
			jsl.throwError(e, this, arguments)
		}
	}
	//-------------------------------------------------------------------------------
	jsl.DataSource.__ni_db_remove = function(path) {
		try {
			__ni_dts_remove(path)
		}
		catch(e) {
			jsl.throwError(e, this, arguments)
		}
	}
	//-------------------------------------------------------------------------------
	jsl.DataSource.__ni_db_query = function(path, sql) {
		try {
			return __ni_dts_query(path, sql)
		}
		catch(e) {
			jsl.throwError(e, this, arguments)
		}
	}
	//-------------------------------------------------------------------------------
	jsl.DataSource.__ni_db_metadata = function(path, query) {
		try {
			return __ni_dts_metadata(path, query)
		}
		catch(e) {
			jsl.throwError(e, this, arguments)
		}
	}
	//-------------------------------------------------------------------------------
	jsl.DataSource.__ni_db_exists = function(path, tid) {
		try {
			return __ni_dts_exists(path, tid ? tid.toLowerCase() : "")
		}
		catch(e) {
			jsl.throwError(e, this, arguments)
		}
	}

  }
